package com.hfut.eeg.dto;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author 梁琦
 * @program: eeg
 * @Package com.hfut.eeg.dto
 * @Description: TODO
 * @date 2019-11-08 15:17
 */
public class User {
    private String userId;

    private String userName;

    private String userPassword;

    //在启用SpringSecurity后，这个字段实际意义已经不大
    private int authority=0;

    @ApiModelProperty(value = "用户头像")
    private String imgHead;

    public User() {
    }

    public User(String userId, String userName,
                String userPassword, int authority,
                String imgHead) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.authority = authority;
        this.imgHead = imgHead;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public int getAuthority() {
        return authority;
    }

    public void setAuthority(int authority) {
        this.authority = authority;
    }

    public String getImgHead() {
        return imgHead;
    }

    public void setImgHead(String imgHead) {
        this.imgHead = imgHead;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", authority=" + authority +
                ", imgHead='" + imgHead + '\'' +
                '}';
    }
}
